import { ObjCreate } from "../common/ObjCreate";
type int = number;
//class VIPItemSprite
    
    export  class VIPItemSprite /* flash.display.Sprite */
    {
        constructor(arg1: Object /* flash.display.Sprite */, arg2: number=0)
        {
            
            this._contentSp = arg1;
            this._height = arg2;
            this.init();
            return;
        }

        /* internal  */init(): void
        {
            this._tfIndex = ObjCreate.createTextField("", 0, 0, 40, 20, this);
            this._contentSp.x = 20;
            this.addChild(this._contentSp);
            return;
        }

        public set index(arg1: int)
        {
            this._tfIndex.text = arg1 + ". ";
            return;
        }

        public /* override */ get height(): number
        {
            if (this._height) 
            {
                return this._height;
            }
            return this._contentSp.height;
        }

        /* internal */ /* var */_contentSp: Object /* flash.display.Sprite */;

        /* internal */ /* var */_tfIndex: Object /* flash.text.TextField */;

        /* internal */ /* var */_height: number;
    }
